package com.bwie.user.service.impl;

import com.bwie.common.domain.Log;
import com.bwie.common.domain.User;
import com.bwie.user.mapper.UserMapper;
import com.bwie.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User findUser(String phone) {
        return userMapper.findUser(phone);
    }

    @Override
    public void addLog(Log login) {
        userMapper.addLog(login);
    }
}
